//package scau.cty.base.web.cors;
//
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
///**
// * Created by cty on 2017/1/19.
// */
//public class CorsConfigureAdapter  extends WebMvcConfigurerAdapter{
//
//    public void addCorsMappings(CorsRegistry registry){
//            registry.addMapping("/register").allowedOrigins("http://localhost:3000");
//            registry.addMapping("/login").allowedOrigins("http://localhost:3000");
//            registry.addMapping("/logout").allowedOrigins("http://localhost:3000");
//
//    }
//}
